package com.lin.springcloud.service;

import com.lin.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: linzp
 * @Date: 2021/08/12/10:17
 */
@Component
@FeignClient(value ="CLOUD-PAYMENT-SERVICE")//填的是注册的服务的名字
/*
spring:
  application:
    name: cloud-payment-service
* */
public interface PaymentFeignService {
    @GetMapping("/payment/get/{id}")//这里是 payment controller 的方法 相当于他的接口
     CommonResult getPayment(@PathVariable(value = "id") Long id);


}
